home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
svgabg55
/
makebgi.bat
< prev
next >
Wrap
DOS Batch File
|
1994-08-23
|
907b
|
40 lines
echo off
SET BGIVER=2
if "%1" == "" goto SelectType
if "%3" == "" goto setBGIVer
set BGIVER=
set BGIVER=%3
:setBGIVer
if %1 == t goto makeTweak
if %1 == s goto makeSuperVGA
goto SelectType
:makeSuperVGA
tasm /dBGIVERSION=%BGIVER% SVGA%2.asm,SVGA%2.obj ;
tlink /3 SVGA%2.obj
exe2bin SVGA%2.exe SVGA%2.bin
bgihdr SVGA%2 SVGA%2.bin SVGA%2.bgi SVGA%2.map
del SVGA%2.exe
del SVGA%2.obj
del SVGA%2.bin
del SVGA%2.map
goto Exit
:makeTweak
tasm /dBGIVERSION=%BGIVER% TWK%2.asm,TWK%2.obj ;
tlink /3 TWK%2.obj
exe2bin TWK%2.exe TWK%2.bin
bgihdr TWK%2 TWK%2.bin TWK%2.bgi TWK%2.map
del TWK%2.exe
del TWK%2.obj
del TWK%2.bin
del TWK%2.map
goto Exit
:SelectType
echo Usage: "makebgi [s|t] clr {version}"
echo Version defaults to BGI v2.0
echo For example: to make the Tweaked-16 color driver (v2.0) enter: "makebgi t 16"
echo for BGI v3.0: "makebgi t 16 3"
:Exit